var tds = document.querySelectorAll("td");
for (var i = 0; i < tds.length; i++) {
    tds[i].addEventListener('click', function () {
        console.log(1);
    });
}
